package com.gwkj.zxjl_user.HttpUpload;

import com.upyun.library.common.Params;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by FuJiahui on 2016/7/6.
 */
public class UpLoadBean implements Serializable {
    private static final String APIKEY = "x3gSOwfN5F7klaSesSHO6657XOU=";
    private static final String SPACE = "zxjl-worker";

    private int key;
    private String local_path;
    private String space_path;

    public UpLoadBean(int key, String local_path, String space_path) {
        this.key = key;
        this.local_path = local_path;
        this.space_path = space_path;
    }

    public static String getAPIKEY() {
        return APIKEY;
    }

    public static String getSPACE() {
        return SPACE;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public int getKey() {
        return key;
    }

    public String getLocal_path() {
        return local_path;
    }

    public void setLocal_path(String local_path) {
        this.local_path = local_path;
    }

    public String getSpace_path() {
        return space_path;
    }

    public void setSpace_path(String space_path) {
        this.space_path = space_path;
    }

    public Map<String, Object> getParams(){
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(Params.BUCKET, SPACE);
        params.put(Params.SAVE_KEY, space_path);
        //params.put(Params.EXPIRATION, new Date().getTime()/1000);http://zxjl-worker.b0.upaiyun.com/avatar/40/b.jpg
        return params;
    }
}
